<template>
	<view class="content">
		<u-navbar title="团队报表" :placeholder="true" :autoBack="true">
			<view class="u-nav-slot" slot="right" @click="orderbyChange">
				筛选
			</view>
		</u-navbar>
		<view class="report">
			<view class="report-title">
				轮回(luhui7777)团队报表
			</view>
			<view class="report-list">
				<view class="report-item">
					<view class="item-text">
						交易量
					</view>
					<view class="item-num">
						￥ 0
					</view>
				</view>
				<view class="report-item">
					<view class="item-text">
						个人交易量
					</view>
					<view class="item-num">
						￥ 0
					</view>
				</view>
			</view>
			<view class="report-list">
				<view class="report-item">
					<view class="item-text">
						直属交易量
					</view>
					<view class="item-num">
						￥ 0
					</view>
				</view>
				<view class="report-item">
					<view class="item-text">
						提现
					</view>
					<view class="item-num">
						￥ 0
					</view>
				</view>
			</view>
			<view class="report-list">
				<view class="report-item">
					<view class="item-text">
						进货红利
					</view>
					<view class="item-num">
						￥ 0
					</view>
				</view>
				<view class="report-item">
					<view class="item-text">
						出货红利
					</view>
					<view class="item-num">
						￥ 0
					</view>
				</view>
			</view>
			<view class="report-list">
				<view class="report-item">
					<view class="item-text">
						当日进货数量
					</view>
					<view class="item-num">
						0
					</view>
				</view>
				<view class="report-item">
					<view class="item-text">
						USDT充值
					</view>
					<view class="item-num">
						0/0
					</view>
				</view>
			</view>
			<view class="report-list">
				<view class="report-item">
					<view class="item-text">
						当日操作人数
					</view>
					<view class="item-num">
						0
					</view>
				</view>
				<view class="report-item">
					<view class="item-text">

					</view>
					<view class="item-num">

					</view>
				</view>
			</view>
		</view>
		<view class="title">
			下级盈利报表
		</view>
		<view class="report">
			<view class="report-title">
				轮回(luhui7777)团队报表
			</view>
			<view class="report-list">
				<view class="report-item">
					<view class="item-text">
						交易量
					</view>
					<view class="item-num">
						￥ 0
					</view>
				</view>
				<view class="report-item">
					<view class="item-text">
						直属交易量
					</view>
					<view class="item-num">
						￥ 0
					</view>
				</view>
			</view>
			<view class="report-list">
				<view class="report-item">
					<view class="item-text">
						提现
					</view>
					<view class="item-num">
						￥ 0
					</view>
				</view>
				<view class="report-item">
					<view class="item-text">
						进货红利
					</view>
					<view class="item-num">
						￥ 0
					</view>
				</view>
			</view>
			<view class="report-list">
				<view class="report-item">
					<view class="item-text">
						出货红利
					</view>
					<view class="item-num">
						￥ 0
					</view>
				</view>
				<view class="report-item">
					<view class="item-text">
						当日进货数量
					</view>
					<view class="item-num">
						0
					</view>
				</view>
			</view>
			<view class="report-list">
				<view class="report-item">
					<view class="item-text">
						下级返利
					</view>
					<view class="item-num">
						￥ 0
					</view>
				</view>
				<view class="report-item">
					<view class="item-text">
						USDT充值
					</view>
					<view class="item-num">
						0/0
					</view>
				</view>
			</view>
			<view class="report-list">
				<view class="report-item">
					<view class="item-text">
						当日操作人数
					</view>
					<view class="item-num">
						0
					</view>
				</view>
				<view class="report-item">
					<view class="item-text">

					</view>
					<view class="item-num">

					</view>
				</view>
			</view>
		</view>
		<fjj-condition ref='condition' @touchmove.stop :color="color" :list="menuList" :defaultValue="defaultValue"
			@result="resultConditon" />
	</view>
</template>

<script>
	import fjjCondition from '@/components/fjj-condition/fjj-condition.vue';
	export default {
		components: {
			fjjCondition,
		},
		data() {
			return {
				color: '#4D7BFE',
				hasChoose: false,
				defaultValue: {
					custom2: 1,
					custom3:1,
					time1: ['2021/02/01', '2021/02/03'],
				},
				menuList: [{
						'title': '渠道',
						'type': 'custom',
						'key': 'custom2',
						'isMutiple': false, //单选
						'detailList': [{
								title: '全部',
								value: "1",
							}, {
								title: '银联',
								value: "2",
							},
							{
								title: '支付宝',
								value: "3",
							},
							{
								title: '支付宝红包',
								value: "4",
							},
							{
								title: '数字人民币',
								value: "5",
							},
							{
								title: '微信',
								value: "6",
							},
							{
								title: '抖音红包',
								value: "7",
							}
						],
					},
					{
						'title': '选择下线',
						'type': 'custom',
						'key': 'custom3',
						'isMutiple': false, //单选
						'detailList': [{
								title: '全部',
								value: "1",
							}
						],
					}, {
						'title': '日期范围',
						'type': 'range',
						'key': 'time1',
						'minName': 'time1MinName',
						'maxName': 'time1MaxName',
					}
				]
			}
		},
		onLoad() {

		},
		methods: {
			resultConditon(obj) {
				this.$refs.condition.visibleDrawer = false;
				this.hasChoose = obj.hasChoose;
				console.log(obj);
			},
			orderbyChange(obj) {
				this.$refs.condition.visibleDrawer = true;
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		min-height: 100vh;
		background-image: url('../../../static/home/page-bg.png');
		background-repeat: no-repeat;
		background-size: 100% 100%;
		padding: 30rpx;
		.u-nav-slot {
			font-size: 26rpx;
		}

		.report {
			border-radius: 30rpx;
			background-color: #fff;
			margin-top: 20rpx;
			padding-bottom: 30rpx;

			.report-title {
				padding: 20rpx;
				text-align: center;
				font-weight: bold;
				font-size: 26rpx;
				border-bottom: 1rpx solid #eeeeee;
			}

			.report-list {
				display: flex;
				justify-content: space-around;
				text-align: center;

				.report-item {
					margin-top: 30rpx;
					color: #000;

					.item-text {
						width: 200rpx;
						font-size: 26rpx;
					}

					.item-num {
						width: 200rpx;
						margin-top: 10rpx;
						font-size: 28rpx;
						font-weight: bold;
					}
				}
			}
		}

		.title {
			color: #ffffff;
			font-size: 28rpx;
			font-weight: bold;
			padding: 30rpx 0;
		}
	}
</style>